import {request} from "@/network/request";

//获取搜索订单数据
export function getAllOrderOrSearch(current,size,type,data){
    return request({
        url: '/admin/order/list',
        method: 'get',
        params:{current,size,type,data}
    })
}
//订单修改
export function updateOrder(orderInfo){
    return request({
        url: '/admin/order/update',
        method: 'post',
        data:orderInfo,
    })
}
//添加订单
export function addOrder(orderInfo){
    return request({
        url: '/admin/order/add',
        method: 'post',
        data:orderInfo
    })
}

//批量操作订单 删除订单 操作订单
export function batchHandleOrder(type,data){
    return request({
        url: '/admin/order/batch/'+type,
        method: 'post',
        data:data
    })
}

//在房间页面获取订单用户数据
export function getUserSimpleByRoomNo(roomNo){
    return request({
        url: '/admin/order/getUserSimpleByRoomNo/'+roomNo,
        method: 'get'
    })
}